package com.fs.mjx.service.impl;


import com.fs.mjx.Dao.RoleDao;
import com.fs.mjx.pojo.Role;
import com.fs.mjx.service.RoleService;

import java.util.Set;

/**
 * @description:
 * @author： mjx
 * @createDate: 2020/9/15
 * @version: 1.0
 */
public class RoleServiceImpl implements RoleService {
    private RoleDao roleDao;

    public RoleServiceImpl(RoleDao roleDao) {
        this.roleDao = roleDao;
    }

    @Override
    public Set<Role> getAllRole() {
        return roleDao.queryRole();
    }

    @Override
    public boolean modifyState() {
        return false;
    }
}
